{include file="public/header" /}



<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.ds_exambank}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>

    <form method="get" name="formSearch" id="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt>{$Think.lang.exambank_question}</dt>
                <dd><input type="text" value="{$Request.param.exambank_question}" name="exambank_question" class="txt"></dd>
            </dl>
            <dl>
                <dt>{$Think.lang.exambank_level}</dt>
                <dd>
                    <select name="exambank_level">
                        {foreach name="exambank_level_list" item="exambank_level_item" key="exambank_level_key"}
                        <option value="{$exambank_level_key}" {if $exambank_level_key == $Request.param.exambank_level }selected{/if}>{$exambank_level_item}</option>
                        {/foreach}
                    </select>
                </dd>
            </dl>
            <dl>
                <dt>{$Think.lang.examtype_id}</dt>
                <dd>
                    <select name="examtype_id">
                        <option value="">{$Think.lang.ds_please_choose}...</option>
                        {foreach name="examtype_list" item="examtype_item" key="examtype_key"}
                        <option value="{$examtype_key}" {if $examtype_key == $Request.param.examtype_id }selected{/if}>{$examtype_item}</option>
                        {/foreach}
                    </select>
                </dd>
            </dl>
            <dl>
                <dt>{$Think.lang.examclass_id}</dt>
                <dd>
                    <select name="examclass_id">
                        <option value="">{$Think.lang.ds_please_choose}...</option>
                        {foreach name="examclass_list" item="examclass"}
                        <option value="{$examclass.examclass_id}" {if $examclass.examclass_id == $Request.param.examclass_id }selected{/if}>{if $examclass.examclass_parent_id > 0}&nbsp&nbsp{/if}{$examclass.examclass_name}</option>
                        {/foreach}
                    </select>
                </dd>
            </dl>


            <div class="btn_group">
                <input type="submit" class="btn" value="{$Think.lang.ds_search}">
                <a href="{:url('Exambank/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
            </div>
        </div>
    </form>

    <table class="ds-default-table">
        <thead>
            <tr>
                <th>{$Think.lang.examtype_id}</th>
                <th>{$Think.lang.examclass_id}</th>
                <th>{$Think.lang.exambank_question}</th>
                <th>{$Think.lang.exambank_addtime}</th>
                <th>{$Think.lang.exambank_level}</th>
                <th>{$Think.lang.ds_handle}</th>
            </tr>
        </thead>
        <tbody>
            {notempty name="exambank_list"}
            {foreach name="exambank_list" item="exambank"}
            <tr id="ds_row_{$exambank.exambank_id}">
                <td>{$examtype_list[$exambank.examtype_id]}</td>
                <td>{$exambank.examclass_id}</td>
                <td>{:htmlspecialchars_decode($exambank.exambank_question)}</td>
                <td>{$exambank.exambank_addtime|date='Y-m-d'}</td>
                <td>{$exambank_level_list[$exambank.exambank_level]}</td>
                <td>
                    <a href="javascript:dsLayerOpen('{:url('Exambank/detail',['exambank_id'=>$exambank.exambank_id])}','查看试题')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_view}</a>
                    <a href="{:url('Exambank/edit',['exambank_id'=>$exambank.exambank_id])}" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
                    <a href="javascript:dsLayerConfirm('{:url('Exambank/drop',['exambank_id'=>$exambank.exambank_id])}','{$Think.lang.ds_ensure_del}',{$exambank.exambank_id})"  class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
                </td>
            </tr>
            {/foreach}
            {else /}
            <tr class="no_data">
                <td colspan="10">{$Think.lang.ds_no_record}</td>
            </tr>
            {/notempty}
        </tbody>
    </table>
    {$show_page|raw}
</div>